import request from '@/utils/request'

// 查询体检人员登记列表
export function listPerson(query) {
  return request({
    url: '/health/person/list',
    method: 'get',
    params: query
  })
}

// 查询体检人员登记详细
export function getPerson(personId) {
  return request({
    url: '/health/person/' + personId,
    method: 'get'
  })
}

// 新增体检人员登记
export function addPerson(data) {
  return request({
    url: '/health/person',
    method: 'post',
    data: data
  })
}

// 修改体检人员登记
export function updatePerson(data) {
  return request({
    url: '/health/person',
    method: 'put',
    data: data
  })
}

// 删除体检人员登记
export function delPerson(personId) {
  return request({
    url: '/health/person/' + personId,
    method: 'delete'
  })
}
